home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1991: Code Warrior / bincue / Code Warrior.bin / Developer Essentials / DTS Sample Code / System 7.0 Samples / CShell / CShell.protos < prev    next >
Encoding:
Text File  |  1991-02-21  |  4.5 KB  |  159 lines  |  [TEXT/MPS ]

  1. #ifndef __APPLEEVENTS__
  2. #include <AppleEvents.h>
  3. #endif
  4.  
  5. #ifndef __MENUS__
  6. #include <Menus.h>
  7. #endif
  8.  
  9. #ifndef __STANDARDFILE__
  10. #include <StandardFile.h>
  11. #endif
  12.  
  13. /************** AppleEvents.c **************/
  14.  
  15. void            DoHighLevelEvent(EventRecord *event);
  16. OSErr            GetTargetInfo(AEAddressDesc targetDesc, StringPtr zone, StringPtr machine, StringPtr application);
  17. void            InitAppleEvents(void);
  18. OSErr            MakeTarget(AEAddressDesc *target, Boolean sendDirect, short replyMode, Str255 prompt, Str255 applListLabel,PPCFilterProcPtr portFilter);
  19. Boolean            MissedAnyParameters(AppleEvent message);
  20. pascal OSErr    DoAEOpenApplication(AppleEvent message, AppleEvent reply, long refcon);
  21. pascal OSErr    DoAEOpenDocuments(AppleEvent message, AppleEvent reply, long refcon);
  22. pascal OSErr    DoAEPrintDocuments(AppleEvent message, AppleEvent reply, long refcon);
  23. pascal OSErr    DoAEQuitApplication(AppleEvent message, AppleEvent reply, long refcon);
  24. OSErr            OpenDocEventHandler(AppleEvent message, AppleEvent reply, short mode);
  25.  
  26.  
  27.  
  28. /************** AppleEvents2.c **************/
  29.  
  30. void            InitCustomAppleEvents(void);
  31. OSErr            SendConnect(FileRecHndl frHndl);
  32. OSErr            SendMessage(FileRecHndl frHndl, short messageType);
  33. WindowPtr        GetAEWindow(long windID_0, long windID_1);
  34.  
  35.  
  36.  
  37. /************** DoCursor.c **************/
  38.  
  39. void            DoCursor(Boolean isAppleEvent, long classID);
  40. void            DoSetCursor(Cursor *cursor);
  41.  
  42.  
  43.  
  44. /************** DoEvent.c **************/
  45.  
  46. void            DoEvent(EventRecord *event);
  47. void            DoActivate(WindowPtr window, Boolean becomingActive);
  48. void            DoUpdate(WindowPtr window);
  49. void            DoContentClick(WindowPtr window, EventRecord *event);
  50. void            ResizeContent(WindowPtr window);
  51.  
  52.  
  53.  
  54. /************** EventLoop.c **************/
  55.  
  56. void            EventLoop(void);
  57.  
  58.  
  59.  
  60. /************** File.c **************/
  61.  
  62. OSErr            AppDisposeDocument(FileRecHndl frHndl);
  63. Boolean            AppDocumentDirty(FileRecHndl frHndl);
  64. OSErr            AppNewDocument(FileRecHndl *returnHndl);
  65. OSErr            AppOpenDocument(FileRecHndl *result, FSSpecPtr fileToOpen, char permission);
  66. OSErr            AppSaveDocument(FileRecHndl    frHndl, WindowPtr window, short saveMode);
  67. void            ConvertOldToNewSFReply(SFReply *oldReply, StandardFileReply *newReply);
  68. OSErr            Create_OpenFile(FSSpec *file, short *refNum);
  69. Boolean         DisplayGetFile(StandardFileReply *reply);
  70. Boolean         DisplayPutFile(StandardFileReply *reply);
  71. void            IncNewFileNum(Boolean flag);
  72.  
  73.  
  74.  
  75. /************** File2.c **************/
  76.  
  77. void            AppFreeDocument(FileRecHndl frHndl);
  78. OSErr            AppInitDocument(FileRecHndl frHndl);
  79. OSErr            AppReadDocument(FileRecHndl frHndl);
  80. OSErr            AppWriteDocument(FileRecHndl frHndl);
  81. OSErr            AppDuplicateDocument(FileRecHndl oldFrHndl, FileRecHndl *newFrHndl);
  82.  
  83.  
  84.  
  85. /************** Help.c **************/
  86.  
  87. void            DynamicBalloonHelp(void);
  88.  
  89.  
  90.  
  91. /************** IdleTasks.c **************/
  92.  
  93. void            DoIdleTasks(void);
  94. pascal Boolean    MyIdleProc(EventRecord *event, long *sleep, RgnHandle *mouseRgn);
  95. void            NotifyCancel(void);
  96. void            NotifyUser(void);
  97.  
  98.  
  99.  
  100. /************** Init.c **************/
  101.  
  102. void            Initialize(void);
  103. void            StartDocuments(void);
  104.  
  105.  
  106. /************** Menu.c **************/
  107.  
  108. void            AdjustMenus(void);
  109. void            EnableOrDisableItem(MenuHandle menu, short item, Boolean enable);
  110. void            DoMenuCommand(long menuResult);
  111.  
  112.  
  113.  
  114. /************** Print.c **************/
  115.  
  116. OSErr            AppPrintDocument(FileRecHndl frHndl, Boolean jobDlg, Boolean firstJob);
  117. OSErr            PresentStyleDialog(FileRecHndl frHndl);
  118.  
  119.  
  120.  
  121. /************** Start.c **************/
  122.  
  123. void            main(void);
  124.  
  125.  
  126.  
  127. /************** Utils.c **************/
  128.  
  129. void            appendi2cstr(char *cstr, short i);
  130. short            appendi2pstr(char *pstr, short i);
  131. short            i2cstr(char *cstr, short i);
  132. void            i2pstr(char *pstr, short i);
  133. void            pstrcat(char *d, char *s);
  134. void            pstrcpy(char *d, char *s);
  135. short            GetHexByte(char *cptr);
  136. pascal Boolean    keyEquivFilter(DialogPtr dlg, EventRecord *event, short *item);
  137. void            OffsetControl(ControlHandle ctl, short dx, short dy);
  138. void            DoDrawGrowIcon(WindowPtr window, Boolean horLine, Boolean verLine);
  139. void            DoDrawControls(WindowPtr window, Boolean scrollBarsOnly);
  140. void            DoDraw1Control(ControlHandle ctl, Boolean scrollBarsOnly);
  141.  
  142.  
  143. /************** Window.c **************/
  144.  
  145. OSErr            AppNewWindow(FileRecHndl frHndl, WindowPtr *retWindow);
  146. void            AppNewWindowTitle(WindowPtr window);
  147. Boolean            AppWindowDirty(WindowPtr window);
  148. Boolean            DisposeAllWindows(void);
  149. Boolean            DisposeOneWindow(WindowPtr window, short saveMode);
  150. WindowPtr        SetFilePort(FileRecHndl frHndl);
  151.  
  152.  
  153. /************** Window2.c **************/
  154.  
  155. OSErr            AppNewWindowControls(FileRecHndl frHndl, WindowPtr window);
  156. void            ImageDocument(FileRecHndl frHndl);
  157.  
  158.  
  159.